import request from '@/utils/request'

// login
export function login(data) {
    return request({
      url: '/front/login',
      method: 'post',
      data
    })
}

// register
export function register(data) {
    return request({
      url: '/front/register',
      method: 'post',
      data
    })
}

// register
export function getcode(data) {
  return request({
    url: '/front/getCode',
    method: 'post',
    data
  })
}

// register
export function resetCodeConfirm(data) {
  return request({
    url: '/front/resetCodeConfirm',
    method: 'post',
    data
  })
}

// register
export function resetPassword(data) {
  return request({
    url: '/front/resetPassword',
    method: 'post',
    data
  })
}